const NODE_ENV = process.env.NODE_ENV ? process.env.NODE_ENV : 'dev';
const config = require(`./${NODE_ENV}.config.js`);

if (!config.PORT) throw 'Missing config.PORT';
const PORT = config.PORT;

if (!config.LOG_FILE) throw 'Missing config.LOG_FILE';
const LOG_FILE = config.LOG_FILE;

export { NODE_ENV, PORT, LOG_FILE };
